intersection of two linked lists